package com.chance.cc.crawler.development.command.schedule.xhs.applets;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.command.job.domain.xhs.applets.XHSBDRealTimeCommentCrawlerScheduleJob;
import com.chance.cc.crawler.development.command.schedule.CrawlerJobScheduleCommand;

/**
 * @author bx
 * @date 2020/12/7 0007 10:23
 */
public class XHSBDCommentJobSchedule {


    private static CrawlerJobScheduleCommand crawlerJobScheduleCommand =
            new CrawlerJobScheduleCommand("192.168.1.215",9589);


    public static void main(String[] args) {

        //文章采集任务
        CrawlerJob crawlerJob = XHSBDRealTimeCommentCrawlerScheduleJob.crawlerSchduler();
        publishCrawlerJobInfo(crawlerJob.generateCrawlerTriggerKey());

    }


    public static void publishCrawlerJobInfo(String triggerKey){
        crawlerJobScheduleCommand.republishCrawlerJob(triggerKey,"crawler_dev_host");
//        crawlerJobScheduleCommand.republishCrawlerJob(triggerKey,"crawler_local_host");
    }


}
